package com.ruoyi.shop.trade.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.shop.trade.domain.ShopOrderItem;
import com.ruoyi.shop.trade.mapper.ShopOrderItemMapper;
import com.ruoyi.shop.trade.service.IShopOrderItemService;
import com.ruoyi.shop.trade.vo.ShopOrderItemVo;


@Service
public class ShopOrderItemServiceImpl implements IShopOrderItemService{

	
	@Autowired
	private ShopOrderItemMapper shopOrderItemMapper;	
	
	
	/**
	 * 查询订单明细
	 * 
	 * @param itemId 订单明细主键
	 * @return 订单明细
	 */
	@Override
	public ShopOrderItem selectItemById(Long itemId) {
		return shopOrderItemMapper.selectItemById(itemId);
	}

	
	@Override
	public List<ShopOrderItemVo> selectItemByOrderId(Long orderId) {
		return shopOrderItemMapper.selectItemByOrderId(orderId);
	}


}
